home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
dev
/
e
/
Chris_emods.lha
/
testprogresswin.e
< prev
Wrap
Text File
|
1997-08-20
|
1KB
|
77 lines
/* This example doesn't work and I don't know why.
It crashes after locking the screen. But it works
when I use it in EvenMore. Oh well. */
/* (Not so strange really, you forgot to open the libs :-) */
OPT OSVERSION=37,
REG=5
MODULE '*progresswin',
'gadtools',
'diskfont'
PROC main() HANDLE
DEF count=NIL,
pw:progresswin
IF (diskfontbase:=OpenLibrary('diskfont.library',37))=FALSE THEN Raise()
IF (gadtoolsbase:=OpenLibrary('gadtools.library',37))=FALSE THEN Raise()
openprogresswin(pw,NIL,NIL,'(pling) Elevator ready...')
Delay(75)
drawprogresstext(pw,'Going up...')
Delay(25)
FOR count:=0 TO 49
drawprogressgad(pw,count)
Delay(1)
ENDFOR
drawprogresstext(pw,'Stand by...')
Delay(75)
drawprogresstext(pw,'50 to go...')
FOR count:=50 TO 100
drawprogressgad(pw,count)
Delay(1)
ENDFOR
drawprogresstext(pw,'(snap) Oops! No wire...')
Delay(75)
drawprogresstext(pw,'Gooing doooown...')
FOR count:=100 TO 50 STEP -1
drawprogressgad(pw,count)
Delay(1)
ENDFOR
drawprogresstext(pw,'(Hick)...')
Delay(60)
drawprogresstext(pw,'50 to go...')
FOR count:=49 TO 0 STEP -1
drawprogressgad(pw,count)
Delay(1)
ENDFOR
drawprogresstext(pw,'You can go home now...')
Delay(150)
EXCEPT DO
closeprogresswin(pw)
IF gadtoolsbase THEN CloseLibrary(gadtoolsbase)
IF diskfontbase THEN CloseLibrary(diskfontbase)
ENDPROC